package com.ztgf.shopping.models.vo.shop;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ztgf.common.annotations.CustomerBigDecimalSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author zhanghualang
 * @Date 2020-05-28 14:35:39
 */
@Data
public class ShopInfoUseStatisticsVO implements Serializable {
    @ApiModelProperty(value = "交易额")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal money;
    @ApiModelProperty(value = "订单数量")
    private Integer orderNum;
    @ApiModelProperty(value = "商品评价")
    private Integer evaluation;
    @ApiModelProperty(value = "退货记录")
    private Integer returnNum;
    @ApiModelProperty(value = "商品收藏")
    private Integer commodityCollect;
    @ApiModelProperty(value = "店铺收藏")
    private Integer shopCollect;
    @ApiModelProperty(value = "最后一次登录")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastLogin;
}
